<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <title>eParticipation</title>
    <style type="text/css">
    form p label
    {
        float: left;
        font-weight: bold;
        width: 100px;
    }
    form  p input
    {
        width: 120px;                
    }
    
    form p
    {
        margin-top: 5px;
        margin-bottom: 5px;
    }
    
    h2
    {
        font-weight: bold;
        color: blue;
    }
    
    </style>
    
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
    <script type="application/x-javascript">
    $(function() {
        if (location.href.indexOf("hestia") >= 0) {
            $("a").each(function() {
               var href = $(this).attr("href");
               $(this).attr("href", "epart/" + href);
            });
            $("form").each(function() {
               var action = $(this).attr("action");
               $(this).attr("action", "epart/" + action);
            });            
        }
    });
    
    </script>        
</head>
<body>
    <a href='createaction.html'>Create Action</a><br/>
    <a href='getactions.html'>Get Actions</a><br/>
    <a href='petition.php?id=1'>Get Petition</a><br/>
    <h2>Sign Petition</h2>
    <form action='signpetition.php' method='get'>
        <p><label for='id'>Petition Id: </label><input type='text' name='id' /></p>
        <p><label for='user'>User: </label><input type='text' name='user' /></p>        
        <p><label for='comment'>Comment: </label><input type='text' name='comment' /></p>
        <input type='submit' value='Sign' />
    </form>    
    <h2>Petition Status</h2>
    <form action='petition.php' method='get'>
        <p><label for='id'>Petition Id: </label><input type='text' name='id' /></p>
        <p><label for='user'>User: </label><input type='text' name='user' /></p>        
        <input type='submit' value='Read' />
    </form>
    <h2>New Comment</h2>
    <form action='comment.php' method='post'>
        <p><label for='actionId'>Action Id: </label><input type='text' name='actionId' /></p>
        <p><label for='user'>User: </label><input type='text' name='user' /></p>
        <p><label for='comment'>Comment: </label><textarea name="comment" rows="7" cols="60"></textarea></p> 
        <input type='submit' value='Post' />
    </form>
    <p><a href='comments.php?actionId=1&page=1&pageSize=10'>Get Comments</a><br/></p>
</body>
</html>
